﻿@using Abp.Extensions
@using Akso.Entities
@using Akso.Web.Areas.Mpa.Models.Common.Modals
@model Akso.Web.Areas.PSSModule.Models.Warehouses.CreateOrEditWarehouseModalViewModel
@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("Pages_PSSModule_Warehouses_Edit") + ": " + Model.Warehouse.WarehouseName) : L("Pages_PSSModule_Warehouses_Create")))
<div class="modal-body">

    <form name="ObjectForm" role="form" novalidate class="form-validation">

        @if (Model.IsEditMode)
        {
            <input type="hidden" name="Id" value="@Model.Warehouse.Id" />
        }

        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="WarehouseName" value="@Model.Warehouse.WarehouseName" class="form-control edited" required maxlength="@Warehouse.MaxNameLength" />
            <label>@L("Pages_PSSModule_Warehouses_GridColumn_WarehouseName")</label>
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <label>@L("Pages_PSSModule_Warehouses_GridColumn_WarehouseType")</label>        
    @*<input type="text" name="WarehouseType" value="@Model.Warehouse.WarehouseType" class="form-control edited" required maxlength=2 />*@
           
            <input id="Warehouse01" name="WarehouseType" type="radio" value="1" @Html.Raw(Model.Warehouse.WarehouseType==1 ? "checked=\"checked\"" : "") />总仓库
            <input id="Warehouse02" name="WarehouseType" type="radio" value="2" @Html.Raw(Model.Warehouse.WarehouseType==2 ? "checked=\"checked\"" : "")/>分仓库
            
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="Remark" value="@Model.Warehouse.Remark" class="form-control edited" maxlength="@Warehouse.MaxRemarkLength" />
            <label>@L("Pages_PSSModule_Warehouses_GridColumn_Remark")</label>
        </div>



    </form>

</div>

@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")